import { Controller, Get, Param } from '@nestjs/common';
import { CourseChapterService } from './chapter.service';

@Controller('course-chapter')
export class CourseChapterController {
  constructor(private readonly CourseChapterService: CourseChapterService) {}
  @Get(':id')
  getCourse(@Param('id') id: string) {
    return this.CourseChapterService.getChapter(id);
  }
  @Get('/next/:id')
  getNextChapter(@Param('id') id: string) {

    return this.CourseChapterService.getNextChapter(id);
  }

}
